<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<script src="static/layui_v2.2.3/layui.js"></script>
<div class="layui-layout layui-layout-admin">
	<div class="layui-header">
	    <div class="layui-logo"><a href="admin/index.do" style="font-size: 20px; color: #11af43;">青州市市民卡管理系统</a></div>
	    <!-- 头部区域（可配合layui已有的水平导航） -->
	    <ul class="layui-nav layui-layout-left" id="top_menu">
	    </ul>
	    <ul class="layui-nav layui-layout-right">
	        <li class="layui-nav-item" id="ParentComboBox">
	            <a href="javascript:;" id="username">
	                <img src="static/img/RCzsdCq.jpg" class="layui-nav-img" id="MenuManage1">
	                <!--Junlan Shuai-->
	                
	            </a>
	            <dl class="layui-nav-child" id="SubComboBox">
	                <dd><a onclick="updatePassword('${user.userId}')" >修改密码</a></dd>
	            </dl>
	        </li>
	        <li class="layui-nav-item">
	        	<a href="admin/logout.do">退出</a>
	        </li>
	    </ul>
	</div>
</div>
<script type="text/javascript">
	
    $("#ParentComboBox").click(function(){
    	if($("#SubComboBox").is(':hidden')){
    		$("#SubComboBox").show();
    	}else{
    		$("#SubComboBox").hide();
    	}
    });
    
    layui.use(['layer', 'form'], function(){
  		var layer = layui.layer
  		,form = layui.form;
  		
	});
    function updatePassword(){
		layer.open({
			type : 2,
			title : '修改密码',
			shadeClose : false,
			move : false,
			area : [ '700px', '450px' ],
			maxmin : true,
			closeBtn : 0,
			content : 'admin/user/update.do?userId=${user.userId}',
			btn : [ '关闭' ],
			yes : function() {
				layer.closeAll();
			}
		});
	}
</script>